﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AJWPFAdmin.Core.Components.AJFilePicker.ViewModels
{
    public class UploadConfig
    {
        public double Height { get; set; }
        public double Width { get; set; }
        public string Text { get; set; }
        public string Filters { get; set; } = "图片文件|*.jpg;*.jpeg;*.png;*.bmp";
        public int Limit { get; set; } = 1;
        public string CustomUploadFolder { get; set; }

        public Func<string> CustomerFileNameHandle { get; set; }

        public Func<AJWPFAdmin.Core.Components.Views.AJFilePicker, bool> BeforeFileDialogShowHandle { get; set; }

        public bool ManualUpload { get; set; }

        public static UploadConfig Default
        {
            get
            {
                return new UploadConfig
                {
                    Height = 120,
                    Width = 120,
                    Text = "上传"
                };
            }
        }
    }
}
